// mqtt.h
#ifndef MQTT_H
#define MQTT_H

#include <pthread.h>
typedef struct s_conn_para {
        char *hostname;
        char *pub_topic;
        char *clientId;
        char *username;
        char *password;
        int port;
        char payload[256];
        char *sub_topic;
        int keepalive;
        int qos;
} conn_para_t;          //MQTT connection parameters
extern conn_para_t conn_para;
#endif // MQTT_H
